package io.renren.modules.app.controller.user.user;

import com.aliyun.oss.ClientException;
import io.renren.modules.app.utils.ALiSMSUtil;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;


@Controller
@RequestMapping("/sms")
public class SMSController {

	@ResponseBody
	@PostMapping("/smsCode")
	public String smsCode(@RequestParam String mobile  ) throws ClientException, com.aliyuncs.exceptions.ClientException {

		String sendCode = ALiSMSUtil.sendCode(mobile);


		return "成功";
	}



}
